<?php

namespace app\common\model\order;

use app\common\model\BaseModel;

class PayLog extends BaseModel
{
    protected $name = 'pay_log';
    protected $pk = 'id';

    protected $autoWriteTimestamp = 'int';
    protected $createTime = 'add_time';
    protected $updateTime = false;

    protected $type = [
        'add_time' => 'timestamp',
    ];
    
    /**
     * 字段验证规则
     * @var array
     */
    protected $schema = [
        'id'            => 'int',
        'order_id'      => 'int',
        'user_id'       => 'int',
        'order_sn'      => 'string',
        'transaction_id' => 'string',
        'amount'        => 'float',
        'payment_type'  => 'string',
        'status'        => 'int',
        'add_time'      => 'timestamp',
    ];
}